<!-- selectCategoryAnchor -->
<div id="selectCategoryAnchor">
	<!-- innerBlock -->
	<div class="innerBlock01">
		<div class="innerBlock02">
			<ul>
			{foreach from=$Mapping item=v name=tdfkLoop}
				<li><a href="#area{$smarty.foreach.tdfkLoop.iteration}">{$v.TODOUFUKEN_NAME}</a></li>
			{foreachelse}
				-
			{/foreach}
			</ul>
		</div>
	</div>
	<!-- /innerBlock -->
</div>
<!-- /selectCategoryAnchor -->
{foreach from=$Mapping item=v name=tdfkLoop}
<!-- selectDetailBlock01 -->
<div class="selectDetailBlock01" id="area{$smarty.foreach.tdfkLoop.iteration}">
	<p class="title">{$v.TODOUFUKEN_NAME}</p>
	<!-- innerBlock01 -->
	<div  class="innerBlock01">
	{foreach from=$v.EKI_DATA item=eki name=ekiLoop}
		<!-- innerBlock02 -->
		<div  class="innerBlock02">
			{if $smarty.foreach.ekiLoop.last && $eki.ENSEN_DATA|@count <= 3}<div class="section02">
			{else}<div class="section01">{/if}
				<p class="station01"><a href="javascript:SelEkinameMap('{$v.TODOUFUKEN_CD}','{$eki.KEIDO}','{$eki.IDO}','{$eki.EKI_CD}');">{$eki.EKI_NAME}</a></p>
				{assign var="cntEn" value=$eki.ENSEN_DATA|@count}
				{foreach from=$eki.ENSEN_DATA item=ensen name=ensenLoop}
					{if $smarty.foreach.ensenLoop.iteration % 3 == 1}
						{if $smarty.foreach.ekiLoop.last && $smarty.foreach.ensenLoop.iteration+3 <= $cntEn && $smarty.foreach.ensenLoop.iteration != 1}
					<div class="section02">
						{elseif $smarty.foreach.ensenLoop.iteration != 1 }
					<div class="section01">
						{/if}
						<ul>
					{/if}
						<li>{$ensen.ENSEN_NAME}</li>
					{if $smarty.foreach.ensenLoop.iteration % 3 == 0 || $smarty.foreach.ensenLoop.last}
						</ul>
					</div>
					{/if}
				{/foreach}
		</div>
		<!-- /innerBlock02 -->
	{/foreach}
	</div>
	<!-- /innerBlock01 -->
</div>
<!-- /selectDetailBlock01 -->
{foreachelse}
	<p>キーワードを含む駅が存在しません</p>

	<!-- searchBtnBlock02 -->
	<div id="searchBtnBlock02">
		<!-- btnBlock -->
		<div class="btnBlock">
			<p class="btn">
				<input type="image" alt="戻る" src="/images/search/common/btn_back.jpg" id="imageField" class="rollImg" name="imageField" onclick="javascript:history.back(); return false;">
			</p>
		</div>
		<!-- /btnBlock -->
	</div>
	<!-- /searchBtnBlock02 -->

{/foreach}

<form name="frm_SelEkiname" method="post" action="{$apm.baseurl}search/chizusearch">
<div id="hiddenval">
<input type="hidden" name="PrefCd" />
<input type="hidden" name="x" />
<input type="hidden" name="y" />
<input type="hidden" name="StCd[]" />
{$hiddenTag}
</div>
</form>
